#include "virtualplayer.h"
#include <limits>
void VirtualPlayer::get_move(Board const& board, int& row, int& col)
{
    /*
    int best = std::numeric_limits<int>::min(),
        worst = std::numeric_limits<int>::max();
    row = col = 0;
    for(int r = 1; r != Board::ROWS + 1; ++r)
        for(int c = 1; c != Board::COLS + 1; ++c)
            if(board.valid_move(color_, r, c)){
                int score = eval_self(board, r, c, best, worst, 1);
                if(socre >= best){
                    best = score;
                    row = r;col = c;
                }
            }
    */            
}
/*
int VirtualPlayer::eval_self(Board const& board, int row, int col,
                             int best, int worst, int d)
{
    if( d == maxdepth)
        return value_of(board);
    Board copy(board);
    if(row > 0)
        copy.move(color_, row, col);
    bool move_result = Unsuccessful;
    for(int r = 1; r != Board::ROWS + 1; ++r)
        for(int c = 1; c != Board::COLS + 1; ++c)
            if(copy.valid_move(opponent_of(color_), r, c)){
                move_result = Successful;
                int score = eval_opponent(copy, r, c, best, worst, d+1);
                if(score <= best)
                    return score;
                if(socre < worst)
                    worst = score;
            }

*/

